<template>
    <div>
        <h1>详情页面</h1>
        <button @click="$router.go(-1);">返回</button>
        <p>{{$route.params.petname}}</p>
    </div>
</template>

<script>
    export default {
        name:'detail'
    }
</script>

<style scoped>

</style>